package com.mzpai.product.exception;

public enum ProductResExceptionCode {
	
	SUCCESS(200,"OK"),
	/**
	 * 200--1000
	 */
	ID_NULL(201,"[ID]参数为空"),
	STOREID_NULL(202,"[STOREID]门店id参数为空"),
	PRODUCTCODE_LIST_NULL(203,"商品id参数为空"),
	SAVE_ERROR(204,"保存异常"),
	ALREADY_COPY_ERROR(205,"已经复制过"),
	PRODUCT_NOT_EXTEND_ERROR(206,"商品不存在"),
	CATE_CODE_NULL(207,"分类id为空"),
	CATEID_NULL(208,"[CATEID]参数为空"),
	STORENAME_NULL(209,"[STORENAME]参数为空"),
	TEMPID_NULL(210,"[TEMPID]参数为空"),
	PRICE_NULL(211,"商品售价参数为空"),
	OTPPRICE_NULL(212,"市场价参数为空"),
	COSTPRICE_NULL(213,"成本价参数为空"),
	BRANDCODE_NULL(214,"[BRANDCODE]参数为空"),
	BRANDID_NULL(215,"[BRANDID]参数为空"),
	PID_NULL(216,"[PID]参数为空"),
	PRODUCT_MORE_ERROR(217,"商品数据不唯一"),
	ISSHOW_NULL(218,"[上下架标识参数为空"),
	DEL_ERROR(219,"删除异常"),
	TEMPLATE_NULL(220,"[没有协议、合同模板"),
	BARCODE_EXTEND_ERROR(221,"[条形码已存在"),
	BARCODE_NULL(222,"[条形码为空"),
	OPERATE_NULL(223,"[操作标识为空"),
	PRODUCT_TYPE_NULL(224,"[ID]参数为空"),
	PAY_METHOD_NULL(226,"[PAY_METHOD]支付方式为空"),
	USER_INFO_NULL(227,"会员不存在"),
	QR_DATE_EXPIRY(228,"会员二维码失效,请重新刷新二维码"),
	USER_QR_SIGNDATE_ERROR(229,"会员码签名比对失败"),
	PAY_CODE_NULL(230,"[PAY_CODE]支付方式为空"),
	USER_ENCRYPT_DATA_NULL(231,"用户密文参数为空"),
	USER_SIGN_DATA_NULL(232,"用户签名数据参数为空"),
	PRODUCT_LABEL_NULL(233,"商品标签为空"),
	GET_TOKEN_ERROR(234,"生产门店小程序码获取token异常"),
	GET_QRCODE_IMAGE_ERROR(235,"生产门店小程序码流异常"),
	PRODUCT_QRCODE_IMAGE_ERROR(236,"生产商品小程序码流异常"),
	LESS_THAN_ZERO_ERROR(237,"充值金额不能小于等于0"),
	USER_IDNULL_ERROR(238,"用户id为空"),
	ADD_UPDATE_OPERATEFLAGE_NULL(239,"新增或修改操作标识为空"),
	ADD_UPDATE_OPERATEFLAGE_ERROR(240,"新增或修改操作标识为空"),
	PRIMARY_ID_NULL(241,"主键为空"),
	BANK_CODE_NULL(242,"银行卡号为空"),
	BANK_NAME_NULL(243,"银行名称为空"),
	REAL_NAME_NULL(244,"真实姓名为空"),
	AMOUNT_NULL(245,"提现金额为空"),
	EXTRACT_TYPE_NULL(246,"提现类型为空"),
    ALREADY_EXISTALREADY_REVIEW(247,"已存在审核中的提现,请通过后再提交"),
    BALANCE_NOT_SUFFICIEN(248,"提现金额大于剩余可提现余额"),
    AMOUNT_LESSTHAN_SERVICE_CHARGE(249,"提现金额必须大于手续费"),
    NICKNAME_PHONE_NULL(250,"用户手机号或昵称为空"),
    STOREINFO_NULL(251,"没有查到对应门店"),
    DEDUCT_DONOT_USE(252,"部分抵扣金已不可用"),
    NOT_BIND_USE(253,"不是该门店会员"),
    PUB_SECKILL_PRODUCT_NULL(254,"发布秒杀商品为空"),
    SECKILL_PRODUCT_NULL(255,"秒杀商品不能为空"),
    SECKILL_PRODUCT_NOTEXIT(256,"库存秒杀商品不存在"),
    SECKILL_PRODUCT_NOT_SUFFICIENT(257,"秒杀商品库存不足"),
    SECKILL_PRODUCT_TIME_END(258,"秒杀商品时间已结束"),
    ORDER_ID_NULL(259,"订单id为空"),
    ORDER_SECKILL_NULL(260,"秒杀成功明细表不存在"),
    PRODUCT_ATTRVALUE_ID_NULL(261,"商品规格id为空"),
    SECKILL_ID_NULL(262,"秒杀商品库主键SECKILLID为空"),
    SECKILL_VERIFY_FAIL(263,"秒杀校验失败"),
    SECKILL_BUY_OVER(264,"已购买总数超过上限"),
    DEDUCT_NOTHING_USE(265,"用户在该门店下抵扣金不充足"),
    ALREADY_WANT(266,"已经想要过"),
	;
	private int code;
	private String message;
	
	private ProductResExceptionCode(int code,String message){
		this.code=code;
		this.message = message;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public int getCode() {
		return code;
	}
}
